package com.idione.activities;

import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.idione.util.LogUtil;

public class Credit extends Activity implements OnClickListener {
	
	private TextView lblcopyRigthTitle;
	private TextView lblcopyRigthText;
	private TextView lblCursorLab;
	private TextView lblDCC;
	private TextView lblCreatedBy;
	private TextView lblDev1;
	private TextView lblDev2;
	private TextView lblDev3;
	private TextView lblDev4;
	private TextView lblDegree1;
	private TextView lblDegree2;
	private TextView lblDegree3;
	private TextView lblDegree4;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.credit);

		lblcopyRigthTitle = (TextView) findViewById(R.id.TxtCopyrithTitle);
		lblcopyRigthText = (TextView) findViewById(R.id.TxtCopyrithText);
		lblCursorLab = (TextView) findViewById(R.id.TxtCursorLab);
		lblDCC = (TextView) findViewById(R.id.TxtDCC);
		lblCreatedBy = (TextView) findViewById(R.id.textView1);
		lblDev1 = (TextView) findViewById(R.id.TxtDev1);
		lblDev2 = (TextView) findViewById(R.id.TxtDev2);
		lblDev3 = (TextView) findViewById(R.id.TxtDev3);
		lblDev4 = (TextView) findViewById(R.id.TxtDev4);
		lblDegree1 = (TextView) findViewById(R.id.TxtDegree1);
		lblDegree2 = (TextView) findViewById(R.id.TxtDegree2);
		lblDegree3 = (TextView) findViewById(R.id.TxtDegree3);
		lblDegree4 = (TextView) findViewById(R.id.TxtDegree4);

		this.setTypeFace();
	}

	private void setTypeFace() {
		Typeface tft = LogUtil.getTypeFaceTitle(this);
		Typeface tfs = LogUtil.getTypeFaceSubtitle(this);
		Typeface tfp = LogUtil.getTypeFaceParagraph(this);
		
		lblcopyRigthTitle.setTypeface(tft);
		lblcopyRigthText.setTypeface(tfp);
		lblCursorLab.setTypeface(tfs);
		lblDCC.setTypeface(tfs);
		lblCreatedBy.setTypeface(tfs);
		lblDev1.setTypeface(tft);
		lblDev2.setTypeface(tft);
		lblDev3.setTypeface(tft);
		lblDev4.setTypeface(tft);
		lblDegree1.setTypeface(tfs);
		lblDegree2.setTypeface(tfs);
		lblDegree3.setTypeface(tfs);
		lblDegree4.setTypeface(tfs);
	}
	
	@Override
	public synchronized void onClick(View arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onBackPressed() {
		super.onBackPressed();
		overridePendingTransition(R.anim.push_down_in, R.anim.push_down_out);
	}
}
